package com.fd.dao;

import com.fd.pojo.Products;

import java.util.List;

public interface ProductDAO {
    //查询商品表
    List<Products>  findProducts();
    //根据id查询
    Products findByID(String pid);
    //添加商品
    boolean insertGoods(String pid,String cid, String pname, double price);
    //根据id删除商品
    boolean deleteGoodsById(String pid);
    //修改商品
    boolean updateGoods(Products products);
}
